//
//  IndexCallback.swift
//  YoruNeko
//
//  Created by Kotori on 2021/6/15.
//

import Foundation
import UIKit

protocol IndexCallback: ViewCallBack {
    func getTabCount() -> Int
    
    /*
     修改所绑定 的tabitem 的属性值，如果set传入参数为nil， 则表示不设置该值
     */
    func setTabItemAttribute(id:UUID,title:String?,urlStr:String,logo:UIImage?,snapshot:UIImage?)
    /*
     切换用户
     */
    func changeCurrentUser(id: String)
    /*
     添加书签
     */
    func addBookmark(title:String?,urlStr:String,faviconData:Data?,toBookmarkParentUuid: UUID?)
    /*
     删除书签
     */
    func deleteBookmark(urlStr: String) -> Bool
    /*
     检查是否已添加书签
     */
    func isBookmarked(url: String) -> Bool
}
